﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyBookerMaster.Master" AutoEventWireup="true" CodeBehind="AnnouncementList.aspx.cs" Inherits="MyBooker.AnnouncementList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:DataList ID="DataListAnnouncements" runat="server" 
        DataSourceID="ObjectDataSource1">
        <ItemTemplate>
            Id:
            <asp:Label ID="IdLabel" runat="server" Text='<%# Eval("Id") %>' />
            <br />
            Title:
            <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
            <br />
            Time:
            <asp:Label ID="TimeLabel" runat="server" Text='<%# Eval("Time") %>' />
            <br />
<br />
        </ItemTemplate>
    </asp:DataList>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetAllAnnouncements"
        TypeName="AnnouncementManager.AnnouncementRepository">
    </asp:ObjectDataSource>
</asp:Content>
